import request from '@/utils/request'

// 查询公社共享仓/激励仓列表
export function listStockroom(query) {
  return request({
    url: '/admin/stockroom/list',
    method: 'get',
    params: query
  })
}

// 查询公社共享仓/激励仓详细
export function getStockroom(id) {
  return request({
    url: '/admin/stockroom/' + id,
    method: 'get'
  })
}

// 新增公社共享仓/激励仓
export function addStockroom(data) {
  return request({
    url: '/admin/stockroom',
    method: 'post',
    data: data
  })
}

// 修改公社共享仓/激励仓
export function updateStockroom(data) {
  return request({
    url: '/admin/stockroom',
    method: 'put',
    data: data
  })
}

// 删除公社共享仓/激励仓
export function delStockroom(id) {
  return request({
    url: '/admin/stockroom/' + id,
    method: 'delete'
  })
}
